package edu.unlv.cs.ladders.entities;

import java.lang.String;
import java.lang.SuppressWarnings;
import javax.persistence.EntityManager;
import javax.persistence.Query;

privileged aspect UserRole_Roo_Finder {
    
    @SuppressWarnings("unchecked")
    public static Query UserRole.findUserRolesByValue(String value) {
        if (value == null || value.length() == 0) throw new IllegalArgumentException("The value argument is required");
        EntityManager em = UserRole.entityManager();
        Query q = em.createQuery("SELECT UserRole FROM UserRole AS userrole WHERE userrole.value = :value");
        q.setParameter("value", value);
        return q;
    }
    
    @SuppressWarnings("unchecked")
    public static Query UserRole.findUserRolesByValueEquals(String value) {
        if (value == null || value.length() == 0) throw new IllegalArgumentException("The value argument is required");
        EntityManager em = UserRole.entityManager();
        Query q = em.createQuery("SELECT UserRole FROM UserRole AS userrole WHERE userrole.value = :value");
        q.setParameter("value", value);
        return q;
    }
    
}
